<?php
namespace org\kahikai\database;

/**
 * 
 * @author ch4mp
 *
 */
interface SpeciesDao {
	
	/**
	 * 
	 * @return a map of all Species id by Species name
	 */
	public function getAllNames();
	
	/**
	 * 
	 * @param string a Species name
	 * @return the Species with specified name or null
	 */
	public function getByName($name);
	
	/**
	 * 
	 * @param int a Species id
	 * @return the Species with specified id or null
	 */
	public function getById($id);
}
?>